home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d910.lha / PowerCache / Installation / Install_PowerCache.IconX next >
Text File  |  1993-08-28  |  2KB  |  86 lines

  1. ; $VER: PowerCache_Install_IconX 37.58 (18.7.93)
  2. ;
  3. ; Installation script for PowerCache. Will install 68000 or 68020 executable,
  4. ; documentation and also locale files for users running v38.
  5. ;
  6. ; Distributed as a part of the PowerCache project.
  7. ; PowerCache is Copyright (C) 1993 by Michael Berg
  8. ; All righs reserved
  9. ;
  10. FailAt 20
  11.  
  12. Echo "PowerCache installation script for use with IconX"
  13. Echo "Copyright © 1993, Michael Berg"
  14. Echo "All Rights Reserved"
  15. Echo ""
  16.  
  17. Echo "Installing Libraries:"
  18.  
  19. Echo "    reqtools.library"
  20. Version > NIL: reqtools.library 37
  21. If NOT WARN
  22.     Echo "        You already have: " NOLINE
  23.     Version reqtools.library
  24.     Echo "" NOLINE
  25.     Ask "        Do you want to install version 38.1042 of reqtools.library?"
  26.     If WARN
  27.         Echo "        Copying reqtools.library to your LIBS: ..."
  28.         Copy >NIL: /libs/reqtools.library LIBS:
  29.     Else
  30.         Echo "        Skipped"
  31.     EndIf
  32. EndIf
  33.  
  34. Avail >NIL: FLUSH
  35.  
  36. Echo ""
  37.  
  38. If EXISTS Locale:Catalogs
  39.     Echo "Do you wish to install the PowerCache catalog files?"
  40.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]: "
  41.     If WARN
  42.         Copy >NIL: Locale Locale: All
  43.         Echo "Catalogs installed"
  44.     EndIf
  45. Else
  46.     Echo "Catalog files not installed -- no Locale directory found"
  47. EndIf
  48.  
  49. If EXISTS SYS:Tools/Commodities
  50.     SetEnv TargetDir Sys:Tools/Commodities
  51. Else
  52.     SetEnv TargetDir Sys:
  53. Endif
  54.  
  55. Echo "Do you wish to install the 68020 version of PowerCache?"
  56. Ask "A1200/A4000 owners should answer Yes: [y/n]: "
  57. If WARN
  58.     SetEnv SourceFile PowerCache.020
  59. Else
  60.     SetEnv SourceFile PowerCache
  61. EndIf
  62.  
  63. Echo "Installing the PowerCache files in $TargetDir/PowerCache/"
  64.  
  65. MakeDir $TargetDir/PowerCache
  66. MakeDir $TargetDir/PowerCache/Documentation
  67.  
  68. Copy >NIL: /$SourceFile $TargetDir/PowerCache
  69. Copy >NIL: /$SourceFile.info $TargetDir/PowerCache
  70. Copy >NIL: /Documentation/#?.guide#? $TargetDir/PowerCache/Documentation
  71.  
  72. Echo "Add PowerCache: ASSIGN statement to S:User-Startup?"
  73. Ask  "(Not strictly required to run PowerCache, but recommended) [y/n]: "
  74.  
  75. If WARN
  76.     Echo "Adding to S:User-Startup..."
  77.  
  78.     Echo ";BEGIN PowerCache" >>S:User-Startup
  79.     Echo "Assign PowerCache: *"$TargetDir/PowerCache*" DEFER" >>S:User-Startup
  80.     Echo ";END PowerCache" >>S:User-Startup
  81.  
  82.     Echo "*NNote: Make sure your S:Startup-sequence executes S:User-Startup!"
  83. EndIf
  84.  
  85. Echo "*NDone. You may close the window now."
  86.